package com.jinher.lib.Module
{

	public class Config extends ReturnMsg
	{
		public function Config()
		{
			this.autoLogin=false;
			this.callNum=0;
			this.close=false;
			this.loginCode="";
			this.msgConfirm=false;
			this.password="";
			this.playSound=true;
			this.pop=true;
			this.rembPwd=true;
			this.winHeight=0;
			this.winStartX=0;
			this.winStartY=0;
			this.winWidth=0;
			this.wsURL="";
			this.alwaysInFront=true;
		}
		//WebService地址
		private var wsURL:String="";
		//登录用户名
		private var loginCode:String="";
		//登录密码
		private var password:String="";
		//记录窗口当前位置X坐标
		private var winStartX:int=0;
		//记录窗口当前位置Y坐标
		private var winStartY:int=0;
		//记录窗口宽度
		private var winWidth:int=0;
		//记录窗口高度
		private var winHeight:int=0;
		//是否自动登录
		private var autoLogin:Boolean=false;
		//是否记录登录密码
		private var rembPwd:Boolean=false;
		//点击关闭按钮时是否关闭窗口
		private var close:Boolean=false;
		//来寻呼时是否播放声音
		private var playSound:Boolean=true;
		//来寻呼时是否弹窗提示
		private var pop:Boolean=true;
		//临时记录两次查看未阅寻呼之间的差值，防止重复提醒
		private var callNum:int=0;
		//寻呼发送时快捷键Enter or Ctrl+Enter
		private var msgConfirm:Boolean=false;
		//窗口始终在前
		private var alwaysInFront:Boolean=true;

		/**
		 * 获取WebService地址
		 */
		public function get WsURL():String
		{
			return this.wsURL;
		}

		/**
		 * 设置WebService地址
		 */
		public function set WsURL(value:String):void
		{
			this.wsURL=value;
		}

		/**
		 * 获取登录用户名
		 */
		public function get LoginCode():String
		{
			return this.loginCode;
		}

		/**
		 * 设置登录密码
		 */
		public function set LoginCode(value:String):void
		{
			this.loginCode=value;
		}

		/**
		 * 获取登录密码
		 */
		public function get Password():String
		{
			return this.password;
		}

		/**
		 * 设置登录密码
		 */
		public function set Password(value:String):void
		{
			this.password=value;
		}

		/**
		 * 获取窗口当前位置X坐标
		 */
		public function get WinStartX():int
		{
			return this.winStartX
		}

		/**
		 * 设置窗口当前位置X坐标
		 */
		public function set WinStartX(value:int):void
		{
			this.winStartX=value;
		}

		/**
		 * 获取窗口当前位置Y坐标
		 */
		public function get WinStartY():int
		{
			return this.winStartY;
		}

		/**
		 * 设置窗口当前位置Y坐标
		 */
		public function set WinStartY(value:int):void
		{
			this.winStartY=value;
		}

		/**
		 * 获取窗口宽度
		 */
		public function get WinWidth():int
		{
			return this.winWidth;
		}

		/**
		 * 设置窗口宽度
		 */
		public function set WinWidth(value:int):void
		{
			this.winWidth=value;
		}

		/**
		 * 获取窗口高度
		 */
		public function get WinHeight():int
		{
			return this.winHeight;
		}

		/**
		 * 设置窗口高度
		 */
		public function set WinHeight(value:int):void
		{
			this.winHeight=value;
		}

		/**
		 * 获取是否自动登录
		 */
		public function get AutoLogin():Boolean
		{
			return this.autoLogin;
		}

		/**
		 * 设置是否自动登录
		 */
		public function set AutoLogin(value:Boolean):void
		{
			this.autoLogin=value;
		}

		/**
		 * 获取是否记住密码
		 */
		public function get RembPwd():Boolean
		{
			return this.rembPwd;
		}

		/**
		 * 设置是否记住密码
		 */
		public function set RembPwd(value:Boolean):void
		{
			this.rembPwd=value;
		}

		/**
		 * 获取点击关闭按钮是否关闭窗口
		 */
		public function get Close():Boolean
		{
			return this.close;
		}

		/**
		 * 设置点击关闭按钮是否关闭窗口
		 */
		public function set Close(value:Boolean):void
		{
			this.close=value;
		}

		/**
		 * 获取来寻呼时是否播放声音
		 */
		public function get PlaySound():Boolean
		{
			return this.playSound;
		}

		/**
		 * 设置来寻呼时是否播放声音
		 */
		public function set PlaySound(value:Boolean):void
		{
			this.playSound=value;
		}

		/**
		 * 获取来寻呼时是否弹出窗口
		 */
		public function get Pop():Boolean
		{
			return this.pop;
		}

		/**
		 * 设置来寻呼时是否弹出窗口
		 */
		public function set Pop(value:Boolean):void
		{
			this.pop=value;
		}

		/**
		 * 获取两次查看未阅寻呼之间的差值，防止重复提醒
		 */
		public function get CallNum():int
		{
			return this.callNum;
		}

		/**
		 * 设置两次查看未阅寻呼之间的差值，防止重复提醒
		 */
		public function set CallNum(value:int):void
		{
			this.callNum=value;
		}

		/**
		 * 获取通过Enter或者Ctrl+Enter来发送寻呼
		 */
		public function get MsgConfirm():Boolean
		{
			return this.msgConfirm;
		}

		/**
		 * 设置通过Enter或者Ctrl+Enter来发送寻呼
		 */
		public function set MsgConfirm(value:Boolean):void
		{
			this.msgConfirm=value;
		}
		
		/**
		 * 获取窗口是否始终在最前 
		 */		
		public function get AlwaysInFront():Boolean
		{
			return this.alwaysInFront;
		}
		
		/**
		 * 设置窗口是否始终在最前 
		 */		
		public function set AlwaysInFront(value:Boolean):void
		{
			this.alwaysInFront = value;
		}		
	}
}
